import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("mall_product",{schema:"nest-mall" } )
export class MallProduct {

    @PrimaryGeneratedColumn({
        type:"mediumint", 
        name:"id"
        })
    id:number;
        

    @Column("mediumint",{ 
        nullable:true,
        default: () => "'0'",
        name:"goods_id"
        })
    goodsId:number | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:50,
        name:"goods_specification_ids"
        })
    goodsSpecificationIds:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:60,
        name:"goods_sn"
        })
    goodsSn:string | null;
        

    @Column("mediumint",{ 
        nullable:true,
        default: () => "'0'",
        name:"goods_number"
        })
    goodsNumber:number | null;
        

    @Column("decimal",{ 
        nullable:true,
        default: () => "'0.00'",
        scale:2,
        name:"retail_price"
        })
    retailPrice:string | null;
        

    @Column("decimal",{ 
        nullable:true,
        default: () => "'0.00'",
        scale:2,
        name:"market_price"
        })
    marketPrice:string | null;
        
}
